#!/bin/bash
get_ip=`ifconfig eth0 | grep "inet addr" | cut -f 2 -d ":" | cut -f 1 -d " "`
get_today=`date -d "0 day" +%Y年%m月%d日`
echo "这是$get_ip 服务器$get_today 的内存监控报告，请下载附件。" | mutt -s "$get_ip 服务器$get_today 内存监控报告" xxxx.163.com -a /scripts/freemem.txt
